home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / a_man / cat1 / rc0.z / rc0
Encoding:
Text File  |  2002-10-03  |  3.5 KB  |  133 lines

  1.  
  2.  
  3.  
  4. rrrrcccc0000((((1111MMMM))))                                                                rrrrcccc0000((((1111MMMM))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      rc0 - run commands required to enter single-user mode or halt the system
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ////eeeettttcccc////rrrrcccc0000
  13.  
  14. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  15.      This file is executed by an entry in /_e_t_c/_i_n_i_t_t_a_b and is responsible for
  16.      performing those operations that bring the system down to either the
  17.      administrative maintenance state, traditionally state ssss, called the
  18.      "single-user" state, or to the system halt state in preparation for
  19.      powering the system down.
  20.  
  21.      /_e_t_c/_r_c_0 runs files beginning with KKKK in /_e_t_c/_r_c_0._d.  These files are
  22.      executed by /_b_i_n/_s_h in ascii sort-sequence order (see FFFFIIIILLLLEEEESSSS below for
  23.      more information).
  24.  
  25.      Each of these files can also check the state of the corresponding
  26.      _c_h_k_c_o_n_f_i_g flag for that function.  If the state is oooonnnn the script goes on
  27.      to shut down or otherwise stop that function; if the state is ooooffffffff it does
  28.      not attempt to stop that function on the theory that since that flag is
  29.      off, it was never started in the first place.  (See _c_h_k_c_o_n_f_i_g(1M)).
  30.  
  31.      The functions performed by the /_e_t_c/_r_c_0 command and associated /_e_t_c/_r_c_0._d
  32.      files include:
  33.  
  34.      Stop System Services and Daemons
  35.  
  36.           Various system services (such as networking or print spooling) are
  37.           gracefully terminated.
  38.  
  39.           When new services are added that should be terminated when the
  40.           system is shut down, the appropriate files are installed in
  41.           /_e_t_c/_r_c_0._d.
  42.  
  43.      Terminate Processes
  44.  
  45.           A SIGTERM signal is sent to all running processes by _k_i_l_l_a_l_l(1M);
  46.           this lets processes stop themselves cleanly.
  47.  
  48.      Kill Processes
  49.  
  50.           A SIGKILL signal is sent to all remaining processes; no process can
  51.           resist SIGKILL.
  52.  
  53.           At this point the only processes left are those associated with
  54.           /_e_t_c/_r_c_0 and a few privileged system processes.
  55.  
  56.      Unmount All Filesystems
  57.  
  58.           Only the root filesystem (/) remains mounted.
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. rrrrcccc0000((((1111MMMM))))                                                                rrrrcccc0000((((1111MMMM))))
  71.  
  72.  
  73.  
  74. FFFFIIIILLLLEEEESSSS
  75.      Files in /_e_t_c/_r_c_0._d must begin with a KKKK followed by a number and the rest
  76.      of the filename.  Upon entering run level 0 or 6, files beginning with KKKK
  77.      are executed with an argument of ssssttttoooopppp .... Files in /_e_t_c/_r_c_0._d are typically
  78.      symbolic links to files in /_e_t_c/_i_n_i_t._d.  Files beginning with other
  79.      characters are ignored.  See _r_c_2(1M) for more information.
  80.  
  81. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  82.      killall(1M), rc2(1M), shutdown(1M).
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.